//
//  Index01.m
//  Learn-runtime
//
//  Created by srxboys on 2021/4/19.
//

#import "Index01.h"

#import "Person.h"
#import "RXDog.h"
#import <objc/objc.h>
#import <objc/message.h>

@implementation Index01
- (instancetype)init
{
    self = [self initWithClass01];
    return self;
}

- (instancetype)initWithClass01
{
    self = [super init];
    if (self) {
        //    Person *p = [Person new];
        //    p.name = @"srx";
        //    p.age = 18;
        //    [p run];
        //    NSLog(@"end");
            
            RXDog * dog = [[RXDog alloc] init];
            [dog eat];
        //    [dog eatWithObj:@"我也不知道"];
        //    objc_msgSend(dog, @selector(eatWithObj:),@"我也不知道");
        //    objc_msgSend((id) dog, sel_registerName("eatWithObj:"), @"我也不知道");
    }
    return self;
}
@end
